const { defineConfig } = require('@vue/cli-service')
const Mock = require("mockjs")
const data = Mock.mock({
  "list|30":[
    {
      name:"@cname",
       date:"@datetime(yy-mm-dd)",
      address:"@ctitle(3,8)"
    }

  ]
}).list
module.exports = defineConfig({
  transpileDependencies: true,
  devServer:{
    onBeforeSetupMiddleware({app}) {
      app.get("/api/list",(req,res)=>{
        res.send(data)
      })
    }
  }
 
})
